package com.example.mall.service;


import com.example.mall.mbg.model.Supplier;

import java.util.List;

/**
 * SupplierService
 * Created by on 2023/12/27.
 */
public interface SupplierService {
    List<Supplier> listAll();

    int create(Supplier supplier);

    int update(Integer supplierid, Supplier supplier);

    int delete(Integer supplierid);

    List<Supplier> list(int pageNum, int pageSize);

    Supplier get(Integer supplierid);

    int getNextId();

    Supplier getSupplierByName(String supplierName);
}
